const express = require("express")

const data = require("./data.json");

const app = express();

app.get("/api/seller",(req,res)=>{

    res.json({
        data:data.seller,
    });
});
app.get("/api/goods",(req,res)=>{
 
    res.json({
        data:data.goods,
    });
});

app.listen(8010,()=>{
    console.log("服务器启动：http://localhost:8010/");
})